{% extends "layouts/application.html" %}
{% block content %}
<script type="text/javascript">
	function AutoScroll(obj){
	        $(obj).find("#pub").animate({
	                marginTop:"-0px"
	        },1500,function(){
	                $(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
	        });
	}
	$(document).ready(function(){
	setInterval('AutoScroll("#scrollDiv")',1000)
	});
</script>
<div align="center">
  <DIV class=boxright>
    <DIV class=bltop2>
      <div align="left">
        <strong>
          &nbsp;&nbsp;&nbsp;当前位置：&nbsp;&nbsp;<a href="/{%site_root%}/resource/show_resource/">资料库</a>
        </strong>
      </div>
    </DIV>
    <DIV class=c_box>
      <DIV class="rep_left">
        <table width="100%" border="0">
          {% if object_list %}
          {% for resource in object_list %}
            <td align="center">
              <table>
                <tr>
                  <td align="center">
                    <a  href="{{resource.get_leveltwo_url}}">
                      <img onMouseOver="javascript:try{showUserCard(event,'/{%site_root%}/resource/ajax_leveltwo_resource/{{resource.id}}');}catch(ex){}" height='100px' width='100px' src='{{resource.get_img_url}}' style='border: none;'>
                    </a>
                  </td>
                </tr>
                <tr>
                  <td><p align="center"><a href="{{resource.get_leveltwo_url}}">{{resource.name}}</a></p></td>
                </tr>
              </table>
            </td>
            {% ifequal forloop.counter 3%}
            <tr></tr>
            {% endifequal %}
            {% ifequal forloop.counter 6%}
            <tr></tr>
            {% endifequal %}
            {% endfor %}
            {% endif %}
        </table>
        <!--一级菜单子目录 -->
       	<div ALIGN="left" class="UserCard" id="UserCard_layer" onmouseover=_stopMouseOver(event) style="DISPLAY: none">
			<div id="UserCard_layer_body"></div>
       	</div>
      </DIV>
    </DIV>
  </DIV>
</div>
{% endblock %}